package nc.ui.ebscg.filedatabase;

public class DataFileFactory {

	private static DataFileFactory DFF;
	
	public static DataFileFactory getInstance(){
		
		if(DFF == null){
			
			DFF = new DataFileFactory();
		}
		
		return DFF;
	}
	
	public IDataBaseFileOper getFileDealServer(){
		DataMessInitFactory dmf = DataMessInitFactory.getInstance();
		DataMessInfoVO dmvo = dmf.obtainDataMessInfoVO();
		switch(dmvo.getDataType()){
		
			case IDatabaseMessageInfo.SQLSERVER:{
				IDataBaseFileOper ibfo = new SqlServerFileOper();
				ibfo.toDatabaseInfo(dmvo);
				return ibfo;
			}
		}
		
		return null;
	}
}
